﻿@model IEnumerable<loveMotorcade.web.Models.order>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            建立时间
        </th>
        <th>
            车型
        </th>

        <th>
            预定日期
        </th>
        <th>
            开始时间
        </th>
        <th>
            结束时间
        </th>
        <th>
            数量
        </th>
        <th>
            类型
        </th>
        <th>
            联系人
        </th>
        <th>
            联系方式
        </th>

        <th>
            来至
        </th>


        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td class="manageDatetime">
            @Html.DisplayFor(modelItem => item.createDate)
        </td>
        <td style="background:#4571ce;color:#fff">
            @Html.DisplayFor(modelItem => item.carClass.name)
        </td>

        <td class="manageDatetime">
            @Html.DisplayFor(modelItem => item.starTime.Date)
        </td>

        <td>
            @item.starTime.ToString("HH:mm")
        </td>
        <td>
            @item.endTime.ToString("HH:mm")
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.employNum)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.type)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.linkman)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.linkphone)
        </td>

        <td>
            @Html.DisplayFor(modelItem => item.user.name)
        </td>


        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
